from django.db import models

# Create your models here.

# 收藏列表model
class UserCollection(models.Model):
    id = models.AutoField(verbose_name='id', primary_key=True)
    user_id = models.IntegerField( verbose_name='用户id')
    advertisement_id = models.IntegerField(verbose_name='用户id')
    create_time = models.DateTimeField(verbose_name='更新时间', null=True)

    class Meta:
        verbose_name = '用户收藏'
        verbose_name_plural = verbose_name

    def __str__(self):
        return str(self.id)
